// 导入axios实例
import httpRequest from "../axios";
//增加Form
interface Form {
    weName:string;
    weCity:string;
    weSeva:string;
    weCon:string;
    weStart:Date;
    weEnd:Date;
    weImg:string;
}
//修改Form
interface Form2 {
    id: number;
    weName:string;
    weCity:string;
    weSeva:string;
    weCon:string;
    weStart:Date;
    weEnd:Date;
    weImg:string;
}
//查询全部
export function allGet() {
    return httpRequest({
        url: "/index3/get/workExp",
        method: "get",
    });
}

//根据id查询单个
export function getOne(id) {
    return httpRequest({
        url: "/index3/get/workExpOne/" + id,
        method: "get",
    });
}

//增加一个
export function AddG(param: Form) {
    return httpRequest({
        url: "/index3/post/addWork",
        method: "post",
        data: param,
    });
}
//删除一个
export function DeleteG(id) {
    return httpRequest({
        url: "/index3/get/deleteWork/" + id,
        method: "get",
    });
}
//修改一个
export function EditG(param: Form2) {
    return httpRequest({
        url: "/index/post/editWorkExp",
        method: "post",
        data: param,
    });
}
